import { FormDataType } from '@/store/action/login';
import request from '@/utils/request';
/** 获取验证码API */
export function SendCodeApi(mobile: string) {
  return request({
    url: `/v1_0/sms/codes/${mobile}`,
  });
}

/** 登录API */
export const LoginApi = (data: FormDataType) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data,
  });
};
